<?php
	require_once('./parser/pb_parser.php');
	$ProtoParser = new PBParser();
	
	$Files = array();
	$d = dir(dirname(__FILE__));
	
	while (false !== ($entry = $d->read())) {
 		array_push($Files, $entry);
	}
	$d->close();

	foreach($Files as $v)
	{
		$PostFix = explode('.', $v);
		if (end($PostFix)=== "proto")
		{
			//开始进行protocol buffer的处理类生成工作。
			$ProtoParser->parse($v);
			echo $v;
		}
	}
	
?>